package ModelLayer;

public class SalesLine {

	private String salesOrderId;
	private String prodId;
	private int quantity; 
	private Product prodObj;
	
	public SalesLine(){}
	
	public SalesLine(String salesOrderId, String prodId){
		this.salesOrderId = salesOrderId;
		this.prodId = prodId;
	}
	
	public SalesLine(String salesOrderId, String prodId, int quantity, Product prodObj){
		this.salesOrderId = salesOrderId;
		this.prodId = prodId;
		this.quantity = quantity;
		this.prodObj = prodObj;
	}

	public Product getProdObj() {
		return prodObj;
	}

	public void setProdObj(Product prodObj) {
		this.prodObj = prodObj;
	}

	/**
	 * Setters
	 */
	
	public void setSalesOrderId(String salesOrderId)
	{
		this.salesOrderId = salesOrderId;
	}
	
	
	public void setProdId(String prodId)
	{
		this.prodId = prodId;
	}
	
	public void setQuantity(int quantity)
	{
		this.quantity = quantity;
	}
	
	
	/**
	 * Getters
	 */
	
	public String getSalesOrderId()
	{
		return salesOrderId;
	}
	
	public String getProdId()
	{
		return prodId;
	}
	
	public int getQuantity()
	{
		return quantity;
	}
}